GBML manual / Constants

BTN_C

The Sega Genesis pad’s C button, for btn_held/btn_pressed/btn_released.

Syntax

BTN_C: constant

Description

Names the Sega Genesis pad's C button, for passing to btn_held, btn_pressed or btn_released - the C button, the third face button next to A and B. Only a console whose pad has this button accepts the name: on a console without it (the GBA, the Game Boy Color, the Game Boy) the check stops the game and says which buttons that console has.

Example

if (btn_pressed(BTN_C)) {
    var fired = true;
}

Checks for a fresh press of C this frame.

See also: btn_heldbtn_pressedbtn_released